import { request } from '@ruifox-cms/utils'

// 获取父级评论
export function selectPageByPidCommentRemarks(params) {
  return request({
      url: '/comment/api/commentRemarks/selectPageByPid',
      method: 'get',
      params
  })
}
// 获取子级评论
export function selectPageByChildIdCommentRemarks(params) {
  return request({
      url: '/comment/api/commentRemarks/selectPageByChildId',
      method: 'get',
      params
  })
}
//新增评论 
export function insertCommentRemarks(data) {
  return request({
      url: '/comment/api/commentRemarks/insert',
      method: 'post',
      data
  })
}

//取消用户评论限制

export function cancelLimitedCommentRemarks(params) {
  return request({
      url: '/comment/api/commentRemarks/cancelLimited',
      method: 'get',
      params
  })
}